<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  (async function run() {
    try {
      await Promise.reject(new Error('Oops!'));
    } catch (error) {
      console.error(error.message);
    }
  })()
</script>
</body>
</html>